import request from '@/utils/request'

// 查询用户收藏列表
export function listCollection(query) {
    return request({
        url: '/wallpaper/collection/list',
        method: 'get',
        params: query
    })
}


// 新增用户收藏
export function addCollection(data) {
    return request({
        url: '/wallpaper/collection',
        method: 'post',
        data: data
    })
}

// 修改用户收藏
export function updateCollection(data) {
    return request({
        url: '/wallpaper/collection',
        method: 'put',
        data: data
    })
}

// 删除用户收藏
export function delCollection(id) {
    return request({
        url: '/wallpaper/collection/' + id,
        method: 'delete'
    })
}
